//
//  GiftCollectionReusableView.m
//  TextApplication
//
//  Created by dllo on 16/8/30.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "GiftCollectionReusableView.h"
#import "CellDetailViewController.h"

@interface GiftCollectionReusableView ()
@property (nonatomic, strong) UIImageView *picImageViewButton;

@end

@implementation GiftCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _picImageViewButton = [[UIImageView alloc] init];
        [_picImageViewButton setImage:[UIImage imageNamed:@"33"]];
        [self addSubview:self.picImageViewButton];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    _picImageViewButton.frame = CGRectMake(0, 0, self.bounds.size.width, 270);
    [self addSubview:self.picImageViewButton];
    self.picImageViewButton.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
    [self.picImageViewButton addGestureRecognizer:tap];
}

- (void)tapAction:(UITapGestureRecognizer *)tap {
    [self.delegate sendURL:@"7"];
}

@end
